package com.maochd.platform.constant;

import com.google.common.collect.Lists;
import com.maochd.platform.util.TemplateUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 钉钉常量类
 */
public interface DingTalkConstants {

    /**
     * 项目对应的手机号映射
     */
    Map<String, List<String>> MOBILE_MAP = new HashMap<String, List<String>>() {{
        put("jx-admin-server", Lists.newArrayList("13587810217", "14796316848", "13253806918", "18574733953", "15249777853", "15180456425"));
        put("jx-tenant-server", Lists.newArrayList("13587810217", "14796316848", "13253806918", "18574733953", "15249777853", "15180456425"));
        put("os-web", Lists.newArrayList("15180456425"));
        put("tenant-web", Lists.newArrayList("15180456425"));
    }};

    /**
     * 状态对应的颜色映射
     */
    Map<String, String> STATUS_COLOR_MAP = new HashMap<String, String>() {{
        put("构建中", "#FFD700");
        put("开始执行", "#00FF7F");
        put("成功", "#00FF7F");
        put("执行中断", "#808080");
        put("执行失败", "#FF0000");
    }};
} 